package object_oriented;

public class Cylinder {
    public double radius  ;  //半径
    public double height  ;   // 高度

    public  double  squaring(){
        return ( 2 * 3.14 * this.radius * this.radius ) + ( 2 * this.radius * 3.14 * this.height ) ;
    }

    public double cube(){
        return ( 3.14 * this.radius * this.radius * this.height ) ;
    }

}
